import numpy as np
import matplotlib.pyplot as plt

value = np.array([80,70,60,40,10])
label = np.array(['python','c','c++','java','go'])

plt.pie(value,labels=label,autopct='%.2f%%')
# value 每个类别（扇区）的数值
# labels 类别名称
# autopct  显示百分比，xf保留几位小数
plt.show()